package com.xiaozhi.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @author 隔离聊天对象
 *
 */
@AiService(wiringMode = EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "calculatorTools"
)
public interface SeparateChatAssistant {
    @SystemMessage(fromResource = "system.txt")
   // @SystemMessage("你是我的好朋友，请用四川话回答问题，今天是{{current_date}}")
    String chat(@MemoryId int memoryId, @UserMessage String userMessage);
}
